<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="uct" uri="/WEB-INF/uct.tld" %>
<%@ taglib prefix="portal" uri="/WEB-INF/portal.tld" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<%@ include file="/common/sale/include/common-base.jsp"%>
	<script src="${ctx}/js/jquery-tools.min.js"></script>
  <title>二次挂牌项目管理</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
</head>

<!-- 以下是body主体内容的模块区域 -->
<body class="hold-transition ${sysUserColor} sidebar-mini">
<div class="wrapper">

  <!-- top start -->
  <%@include file="/common/sale/top-user.jsp" %>
  <!-- top end -->
  <!-- left start -->
  <%@include file="/common/sale/left-user.jsp" %>
  <!-- left end-->

<div class="content-wrapper">
	<div class="content">
		<div class="row">
			<div class="col-lg-12 rightmt">
           <div class="right_box" style="">
          <!------表单  start ------->
			  	<form id="searchForm" class="form-horizontal">
				<input type="hidden" name="doCode" value="dymicSql"/>
				<input type="hidden" name="pageName" value="trsGoods-list">
				<input type="hidden" name="formName" value="searchForm">
				<input type="hidden" name="trsGoods.w_delStatus" value="F">
				<input type="hidden" name="trsGoods.userEname" value="${loginUser.userEname}"/>
				<input type="hidden" name="orderBy"  value="trsGoods.create_time desc" />
				 		
				 	<!-- 我的搜索 start -->
			 		<h4 class="user_title">
					   <p><i class="fa fa-edit"></i><span>二次转让申请单</span></p>
					 </h4>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							收益权名称：
						</label>
						<div class="col-sm-3">
							<input type="text" class="form-control clean"  name="trsGoods.wl_proNo" id="proNo" value="" />
						</div>
						<label  class="col-sm-2 control-label">
							收益权代码：
						</label>
						<div class="col-sm-3">
							<input type="text" class="form-control clean"  name="trsGoods.wl_proNo" id="proNo" value="" />
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							转让人：
						</label>
						<div class="col-sm-3">
							<input type="text" class="form-control clean"  name="trsGoods.wl_proNo" id="proNo" value="" />
						</div>
						<label  class="col-sm-2 control-label">
							转让金额：
						</label>
						<div class="col-sm-3">
							<input type="text" class="form-control clean"  name="trsGoods.wl_proNo" id="proNo" value="" />
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							转让天数：
						</label>
						<div class="col-sm-6">
							<input type="text" class="form-control clean"  name="trsGoods.wl_proNo" id="proNo" value="" style="width: 95%;""/>&nbsp;&nbsp;天
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							参与期：
						</label>
						<div class="col-sm-8">
							<div class="input-append date form_datetime " id="datepicker" style="float: left;width: 45%;">
							    <input style="width:90%" id="regTime" name="member.regTime" type="text" class="form-control" value="" readonly>
							    <span class="add-on"><i class="fa fa-calendar"></i></span>
							</div>
							<label class="col-sm-1">至</label>
							<div class="input-append date form_datetime" id="datepicker" style="float: left;width: 45%;">
							    <input style="width:90%" id="regTime" name="member.regTime" type="text" class="form-control" value="" readonly>
							    <span class="add-on"><i class="fa fa-calendar"></i></span>
							</div>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							受让日：
						</label>
						<div class="col-sm-4">
							<div class="input-append date form_datetime" id="datepicker">
							    <input style="width:92%" type="text" class="form-control" value="" readonly>
							    <span class="add-on"><i class="fa fa-calendar"></i></span>
							</div>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							回购日：
						</label>
						<div class="col-sm-4">
							<div class="input-append date form_datetime" id="datepicker">
							    <input style="width:92%" type="text" class="form-control" value="" readonly>
							    <span class="add-on"><i class="fa fa-calendar"></i></span>
							</div>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							终止或延期：
						</label>
						<label class="col-sm-8">
							<input type="checkbox" />可提前终止
							<input type="checkbox" />可延期
						</label>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							受让起点金额：
						</label>
						<label  class="col-sm-3">
							<input type="text" class="form-control"/>
						</label>
						<label  class="col-sm-2 control-label">
							年化回购溢价率：
						</label>
						<label  class="col-sm-3">
							<input type="text" class="form-control" style="width: 98%;"/>%
						</label>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							转让对价：
						</label>
						<div  class="col-sm-3">
							<input type="text" class="form-control"/>
						</div>
						<label  class="col-sm-2 control-label">
							回购溢价计算方法：
						</label>
						<div  class="col-sm-3">
							<input type="text" class="form-control"/>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							到期回购对价：
						</label>
						<div  class="col-sm-3">
							<input type="text" class="form-control"/>
						</div>
						<label  class="col-sm-2 control-label">
							收益分配方式：
						</label>
						<div  class="col-sm-3">
							<input type="text" class="form-control"/>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							资金到账日：
						</label>
						<div  class="col-sm-4">
							<div class="input-append date form_datetime" id="datepicker">
							    <input style="width:92%" type="text" class="form-control" value="" readonly>
							    <span class="add-on"><i class="fa fa-calendar"></i></span>
							</div>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							增信措施：
						</label>
						<div  class="col-sm-8">
							<textarea rows="2" cols="" class="form-control"></textarea>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							其他规定：
						</label>
						<div  class="col-sm-8">
							<textarea rows="2" cols="" class="form-control"></textarea>
						</div>
					</div>
					<div class="form-group">	
						<label  class="col-sm-2 control-label">
							附件：
						</label>
						<div  class="col-sm-8">
							<label onclick="addUploadFile(12);" for='uploadFileInput' class="btn btn-warning">选择文件</label>
							<label id='fileUpText_12_subbtn' onclick="$.toolsupload.uploadSubmit(this);" style='display:none;' class="fDef_Btnse" >开始上传</label>
							<input id='fileUpText_12' objId='' isSub='F' required="true" name="member.strHundredFive" type="hidden"/>
			              	<label id="fileUpText_12_msg" style="color:red;"></label>
						</div>
					</div>
				<center>
				   <div class="box-footer clearfix">
				       <button type="button" class="btn btn-danger " onclick="getTableData();">提交转让</button> 
				       <button  type="button" class="btn btn-primary" onclick="cleanData('searchForm');">重置 </button>
				   </div>
				</center>
			  </form>
	     </div>
	     <!------- 表单 -------->
        </div>
        <!-- right end -->
      </div>
	  </div>
	  </div>
    <!-- Main end -->
</div>
  <!-- /.content-wrapper -->
  <!-- foot start -->
  <%@include file="/common/sale/foot-user.jsp" %>
  <!-- foot start -->

</body>


<!-- 以下是template列表模板的模块区域 -->
<script type="text/template" id="dataList-template">
		<? for ( var i = 0; i < rows.length; i++) {?>
		<tr>
			<td class="text_c">金融股权</td>
			<td class="text_c">G62017BJ10<?=i+1?></td>
			<td class="text_c">外贸金融租赁股权00<?=i+1?></td>
			<td class="text_c"><?=(i*3)?>000</td>
			<td class="text_c">可用</td>
			<td class="text_c">允许</td>
			<td class="text_c">
				<button class="btn btn-success" style="margin: 0 2px;padding:3px 6px;">二次转让申请</button>
			</td>	
		</tr>
   <?}?>  		
</script>
<iframe name='uploadIframe' id='uploadIframe' frameborder='0' height='0' width='0'></iframe>
<div id="uploadIframeDefDiv" style="height:0px;" ></div>
</html>

<!-- 以下是js模块区域 -->
<script>
var myAttaServer = '<portal:config varKey="atta_server"/>';
var myAttaDomain = '<portal:config varKey="atta_domain"/>';
var clickMenu = "offerbuymanagement";
var id,myPage,dataListId,searchFormId,isShowLog,tableSort,tableId;
myPage = 10;
dataListId = "dataList";
searchFormId = "searchForm";
tableSort = "trsGoods";
tableId = "goodsId";
isShowLog = true;

$(function () {
	
 });
var dateObject = $('.form_datetime').datepicker( {
	language : 'zh-CN',
	//inline: true,
	todayBtn : "linked",
	format : "yyyy-mm-dd",
    autoclose: true
});

function setToken(){
	$.ajax({
	    type:'get',
	    url:'/sendPage/token?token=true',
	    dataType:'text',
	    success: function(myData){
	    	console.log(myData);
			$('#addForm_formToken').val(myData);
			$('#editForm_formToken').val(myData);
	  	}
	});	
}



/****  以下是自定义新增方法  ****/
 
</script>
